Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(server setup): Added MaxConcurrentReconciles to server manager setup #275

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

KHillFastHosts
Copy link
Contributor

Description of your changes

I noticed that despite increasing the max-reconcile-rate flag the number of workers assigned to each resource was remaining at 1, and that the max-reconcile-rate was only actually being used to adjust the GlobalRateLimiter (relevant P.S below). This also appears to be the case for all the other resources as well but I haven't been having scaling problems with those resources so didn't wish to over complicate the PR.

P.S I don't think the global rate limiter is being used either as the line underneath the one this PR adds just instantiates a new rate limiter with default settings)

This PR adds:

Checklist

Minor code change that requires no documentation / test changes

I have:

  • Add PR name as appropriate (e.g. feat/fix/doc/test/refactor)
  • Run make reviewable and make crds.clean to ensure the PR is ready for review
  • Add or update tests (if applicable)
  • Add or update Documentation using make docs.update (if applicable)
  • Update docs/CHANGELOG.md file (label: upcoming release)
  • Check Sonar Cloud Scan
  • Update Github or Jira Issue

@cristiGuranIonos
Copy link
Contributor

good find

@@ -55,7 +55,8 @@ func Setup(mgr ctrl.Manager, opts *utils.ConfigurationOptions) error {
return ctrl.NewControllerManagedBy(mgr).
Named(name).
WithOptions(controller.Options{
Copy link
Contributor

@cristiGuranIonos cristiGuranIonos Nov 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think opts.CtrlOpts.ForControllerRuntime() can be used too. But this works as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find I didn't see that method, I think it would be wise to use that instead so that if anything new is added in future they get picked up by default. Did you want me to edit all the other resources as well or leave it just as server for now?

@KHillFastHosts KHillFastHosts merged commit 1d9155a into master Nov 21, 2024
8 of 9 checks passed
@KHillFastHosts KHillFastHosts deleted the fix/server-max-concurrent-reconciles branch November 21, 2024 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants